import { http } from '@/services/request';
import { prefix } from './config';

// 注册
interface RegisterParam {
	account: string;
	password: string;
}
export const register = (param: RegisterParam) => http.post(`${prefix}/register`, param);

// 登录
export const login = (param: RegisterParam) => {
	return http.post(`${prefix}/login`, param)
};
